package gui;

public class AnimalManagerStateWaitingForFiducial extends AnimalManagerState {

	public AnimalManagerStateWaitingForFiducial(AnimalManager manager) {
		super(manager);
		this.getManager().playAnimalSoundPlayer();
	}

	@Override
	public void isFinishedPlaying() {
		//NOOP
	}

	@Override
	public void processNewID(int iD) {
		if(this.getManager().getCurrentID() == iD){
			//juist
			this.getManager().setState(new AnimalManagerStateCorrectFiducial(getManager()));
			this.setManager(null);
		}else{
			//fout
			this.getManager().setState(new AnimalManagerStateWrongFiducial(getManager()));
			this.setManager(null);
		}
	}

	@Override
	public void processIDRemoval(int iD) {
		// TODO Auto-generated method stub
		
	}

}
